/**     
 * @Title: UserVO.java   
 * @Package me.api2doc.vo  
 * @Description: TODO
 * @author weiwei 
 * @date 2018年3月29日 上午10:38:05   
 * @version V1.0     
 */
package me.api2doc.vo;

import java.util.Date;

import com.terran4j.commons.api2doc.annotations.ApiComment;

/**
 * @ClassName: UserVO
 * @Description: TODO
 * @author weiwei
 * @date 2018年3月29日 上午10:38:05
 * 
 */
public class UserVo {

	@ApiComment(value = "用户ID", sample = "1")
	private Long id;

	@ApiComment(value = "用户名称", sample = "张三")
	private String name;

	@ApiComment(value = "年龄", sample = "18")
	private Integer age;

	@ApiComment(value = "注册时间")
	private Date registTime = new Date();

	public UserVo() {
		super();
	}

	public UserVo(Long id, String name) {
		super();
		this.id = id;
		this.name = name;
	}

	/**
	 * @return the id
	 */
	public Long getId() {
		return id;
	}

	/**
	 * @param id
	 *            the id to set
	 */
	public void setId(Long id) {
		this.id = id;
	}

	/**
	 * @return the name
	 */
	public String getName() {
		return name;
	}

	/**
	 * @param name
	 *            the name to set
	 */
	public void setName(String name) {
		this.name = name;
	}

	/**
	 * @return the age
	 */
	public Integer getAge() {
		return age;
	}

	/**
	 * @param age
	 *            the age to set
	 */
	public void setAge(Integer age) {
		this.age = age;
	}

	/**
	 * @return the registTime
	 */
	public Date getRegistTime() {
		return registTime;
	}

	/**
	 * @param registTime
	 *            the registTime to set
	 */
	public void setRegistTime(Date registTime) {
		this.registTime = registTime;
	}

	@Override
	public String toString() {
		return "User [id=" + id + ", name=" + name + ", age=" + age + ", registTime=" + registTime + "]";
	}

}
